package com.eos.control.action.emp;

import java.util.List;

import com.eos.common.tool.DataCacheUtil;
import com.eos.common.tool.ObjectUtils;
import com.eos.control.action.base.AbstractBaseAction;
import com.eos.orm.mybatis.model.SysMenu;

public class FunctionListAction extends AbstractBaseAction {
	private static final long serialVersionUID = 1496675416724622182L;
	private String menuJson;
	
	public String getMenuJson() {
		return menuJson;
	}

	@Override
	public String execute()  {
		 try {
			List<SysMenu> menuList = DataCacheUtil.getAllSysMenu();
			menuJson = ObjectUtils.listToJson(menuList);
		} catch (Exception e) {
			e.printStackTrace();
		}
		return SUCCESS;
	}
}
